package org.example.controller;

import org.example.service.impl.AdapterImpl;
import org.example.service.impl.DiantiguanjiaToXitongImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot
 * @description:
 * @author: King
 * @create: 2021-09-09 16:32
 */
@RestController
@RequestMapping("/cust")
public class IesCustController {
    @Autowired
    private DiantiguanjiaToXitongImpl diantiguanjiaToXitong;
    @Autowired
    private AdapterImpl adapterImpl;
    @RequestMapping(value="/spider",method= RequestMethod.GET)
    public void test(){
        diantiguanjiaToXitong.diantiguanjiaToXitongImpl();
    }
    @RequestMapping(value="/adapter",method= RequestMethod.GET)
    public void adapter(){
        adapterImpl.adapter();
    }

    @RequestMapping(value="/updateServerId",method= RequestMethod.GET)
    public void updateServerId(){
        adapterImpl.updateServerId();
    }
    @RequestMapping(value="/powerfactor",method= RequestMethod.GET)
    public void powerfactor(){
        adapterImpl.powerfactor();
    }
    @RequestMapping(value="/elecTypeCode",method= RequestMethod.GET)
    public void elecTypeCode(){
        adapterImpl.elecTypeCode();
    }


}
